/**
 * Tree 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/tree/style';

export const treeThemeConfig: Partial<ComponentToken> = {
  titleHeight: 24,
  nodeHoverBg: '#f5f5f5',
  nodeSelectedBg: '#e6f4ff',
  directoryNodeSelectedBg: '#1890ff',
  directoryNodeSelectedColor: '#ffffff',
};

export const getTreeTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...treeThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as TreeComponentToken } from 'antd/es/tree/style';

